<admintpl file="header" />
</head>
<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('CSEAppointmentLetter/index')}">总监理工程师任命书管理</a></li>
            <if condition="($level eq '0' OR $level eq '3')"><li><a href="{:U('CSEAppointmentLetter/add')}">新增总监理工程师任命书</a></li></if>
        </ul>

        <table class="table table-bordered table-condensed table-striped table-responsive">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>建设单位</th>
                    <th>被任命人</th>
                    <th>注册号</th>
                    <th>就职项目</th>
                    <th>创建人</th>
                    <th>创建时间</th>
                    <th style="width:80px;">是否发布</th>
                    <th width="120px">操作</th>
                </tr>
            </thead>
            <tbody>
                <foreach name="results" item="vo">
                    <tr>
                        <td>{$vo.code}</td>
                        <td>{$vo.construction_department}</td>
                        <td>{$vo.appointee}</td>
                        <td>{$vo.supervision_engineers_no}</td>
                        <td>{$vo.employment_project}</td>
                        <td>{$vo.real_name}</td>
                        <td>{$vo.publish_time}</td>

                        <td class="text-center">
                            <if condition="$vo['is_publish'] eq 1">
                                <i class="glyphicon glyphicon-ok text-success"></i>
                                <else />
                                <i class="glyphicon glyphicon glyphicon-remove text-danger"></i>
                            </if>
                        </td>
                        <td>
                            <a href='{:U("CSEAppointmentLetter/view",array("id"=>$vo["id"]))}'>查看</a>
                            <if condition="$vo['is_publish'] eq 0">
                                |
                                <a href='{:U("CSEAppointmentLetter/edit",array("id"=>$vo["id"]))}'>修改</a>
                                |
                                <a class="js-ajax-delete" href="{:U('CSEAppointmentLetter/delete',array('id'=>$vo['id']))}">删除</a>
                            </if>

                            <if condition="$vo['is_publish'] eq 1 and $level eq 0">
                                |
                                <a class="js-ajax-delete" href="{:U('CSEAppointmentLetter/delete',array('id'=>$vo['id']))}">删除</a>
                            </if>
                        </td>
                    </tr>
                </foreach>
            </tbody>
        </table>

        <div class="pagination">{$page}</div>
    </div>
    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>